<?php if ($howMany == "many"): ?>
    <h3 id="doctors-activities-title" class="yellow-bg-title">Doctors' health answers</h3>
<?php endif; ?>
<div class="doctor-answer">
    <div class="inline-block">
        <div class="doctor-answer-photo">
            <?php $doctor = $answer->getDoctor() ?>
            <?php $user = $doctor->getUser() ?>
            <a href="<?php echo url_for('@profile_public?slug=' . $user->getSlug()) ?>"><?php include_partial("doctor_show/potrait", array("doctor" => $doctor, "height" => 50)) ?></a>
        </div>
    </div>
    <div class="inline-block">
        <div class="doctor-answer-details">
            <a href="<?php echo url_for('@profile_public?slug=' . $user->getSlug()) ?>"><?php echo $answer->getDoctor() ?></a>
            <span class="activity-message-first">answered:</span>
            <span class="activity-message-second"><a href="<?php echo url_for('@question_show?id=' . $answer->getQuestion()->getId()) ?>"><?php echo $answer->getQuestion()->getEnquiry() ?></a></span>
            <div class="rating" id="member-answer-rating-<?php echo $answer->getId() ?>">
                <?php include_partial("answer/rating", array("answer" => $answer)) ?>                                                
            </div>
            <p class="detail-answer"><?php echo $answer->getResponse() ?></p>
        </div>
        <div class="answer-comments">
            <div class="answer-stats">
                <span class="answer-stats-item comments-count"><span id="comments-count-<?php echo $answer->getId() ?>"><?php echo $answer->getComments()->count() ?></span> comments</span>
                <span class="answer-stats-item <?php echo ($sf_user->isAuthenticated() && $answer->getIsThanked($sf_user->getDpUser()->getId())) ? 'answer-thanked' : 'answer-unthanked' ?>" answerid="<?php echo $answer->getId() ?>"><?php echo $answer->getThanks()->count() ?></span><span class="answer-thanks">&nbsp;thanks</span>
                <span class="answer-stats-item answer-share">share</span>
            </div>
            <div id="answer-comments-<?php echo $answer->getId() ?>">
                <?php include_partial("answer/comments", array("answerComments" => $answer->getComments())) ?>
            </div>
            <div class="answer-comment">
                <div class="inline-block">
                    <div class="photo">
                        <?php if ($sf_user->isAuthenticated()): ?>
                            <?php include_partial("profile/photo", array("user" => $sf_user->getDpUser(), 'height' => 32)) ?>    
                        <?php endif; ?>
                    </div>
                </div>
                <div class="inline-block">
                    <div id="answer-comment-form-holder-<?php echo $answer->getId() ?>" class="answer-comment-details">
                        <?php include_partial("answer/comment_form", array("form" => $form, "answerId" => $answer->getId())) ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>